<?php
namespace app\admin\controller;
use think\Controller;
use think\Db;
use think\Request;
use think\Session;

class Password extends  Controller{


    public  function  password(){

        $user = Session::get('username');


        $res = Request::instance();
        $url = $res->root(true);

        if(!empty($user)){


            return view('password');

        }else{

            $this->success('请先登录',"{$url}/admin/users/users");
        }



    }
}